package com.bhs.sansonglogistics.bean;

import android.os.Parcel;
import android.os.Parcelable;

import androidx.annotation.NonNull;

public class Department implements Parcelable {

    private int department_id;
    private int logistics_id;
    private String department_name;
    private String department_contact;
    private String department_mobile;
    private int create_time;
    private int update_time;
    private int status;

    protected Department(Parcel in) {
        department_id = in.readInt();
        logistics_id = in.readInt();
        department_name = in.readString();
        department_contact = in.readString();
        department_mobile = in.readString();
        create_time = in.readInt();
        update_time = in.readInt();
        status = in.readInt();
    }

    public static final Creator<Department> CREATOR = new Creator<Department>() {
        @Override
        public Department createFromParcel(Parcel in) {
            return new Department(in);
        }

        @Override
        public Department[] newArray(int size) {
            return new Department[size];
        }
    };

    public int getDepartment_id() {
        return department_id;
    }

    public void setDepartment_id(int department_id) {
        this.department_id = department_id;
    }

    public int getLogistics_id() {
        return logistics_id;
    }

    public void setLogistics_id(int logistics_id) {
        this.logistics_id = logistics_id;
    }

    public String getDepartment_name() {
        return department_name;
    }

    public void setDepartment_name(String department_name) {
        this.department_name = department_name;
    }

    public String getDepartment_contact() {
        return department_contact;
    }

    public void setDepartment_contact(String department_contact) {
        this.department_contact = department_contact;
    }

    public String getDepartment_mobile() {
        return department_mobile;
    }

    public void setDepartment_mobile(String department_mobile) {
        this.department_mobile = department_mobile;
    }

    public int getCreate_time() {
        return create_time;
    }

    public void setCreate_time(int create_time) {
        this.create_time = create_time;
    }

    public int getUpdate_time() {
        return update_time;
    }

    public void setUpdate_time(int update_time) {
        this.update_time = update_time;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(@NonNull Parcel parcel, int i) {
        parcel.writeInt(department_id);
        parcel.writeInt(logistics_id);
        parcel.writeString(department_name);
        parcel.writeString(department_contact);
        parcel.writeString(department_mobile);
        parcel.writeInt(create_time);
        parcel.writeInt(update_time);
        parcel.writeInt(status);
    }
}
